//考核汇总
import request from '@/router/axios'
// 查询列表
export function gatherList(obj) {
  return request({
    url: `/appr-event/rckhscore/page`,
    method: 'get',
    params: obj
  })
}
//
export function checkScoreLast(khType,assessId, formulaId) {
  return request({
    url: `/appr-event/rckhscore/checkScoreLast/${khType}/${assessId}/${formulaId}`,
    method: 'get',
  })
}
//
export function computeScore(khType,assessId, formulaId) {
  return request({
    url: `/appr-event/rckhscore/computeScore/${khType}/${assessId}/${formulaId}`,
    method: 'get',
  })
}
//导出
export function gatherExportExcel(query) {
  return request({
    url: `/appr-event/rckhscore/exportScorebyPeriod`,
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

//导出 by mingyue
export function examinGatherExportExcel(query) {
  return request({
    url: `/appr-event/rckhscore/exportScoreItem`,
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}

// 查询默认启动的考核
export function defaultList(obj) {
  return request({
    url: '/appr-event/routineAssess/default',
    method: 'get',
    params: obj
  })
}
// 查询默认启动的考核
export function getLastPeriod() {
  return request({
    url: '/appr-event/routineAssess/getLastPeriod',
    method: 'get',
  })
}

export function savejghz(type,assessId) {
  return request({
    url: `/appr-event/rckhsjkhdx/savejghz/${type}/${assessId}`,
    method: 'get',
  })
}


